// 导出属于基础信息管理的路由规则
import Layout from '@/layout/index.vue'
//  {  path: '', component: '' }
// 每个子模块 其实 都是外层是layout  组件位于layout的二级路由里面
export default {
  path: '/manage-storage-out', // 路径
  name: 'ManageStorageOut', // 给路由规则加一个name
  component: Layout, // 组件
  meta: {
    title: '出库管理',
    icon: 'el-icon-s-order'
  },
  // 配置三级路由表
  children: [
    {
      path: 'out-list',
      name: 'OutList',
      component: () => import('@/views/manage-storage-out/index.vue'),
      meta: { title: '出库单', icon: '椭圆形备份 50' }
    },
    {
      path: 'detail-list',
      name: 'DetailList',
      hidden: true,
      component: () => import('@/views/manage-storage-out/DetailList/index.vue')
    },
    {
      path: 'goods-list',
      name: 'addGoodsList',
      hidden: true,
      component: () => import('@/views/manage-storage-out/addGoodsList/index.vue')
    },
    {
      path: 'task-picking',
      name: 'OutTaskPicking',
      component: () => import('@/views/manage-storage-out/task-picking/index.vue'),
      meta: { title: '拣货任务', icon: '椭圆形备份 50' }
    },
    {
      path: 'picking-list',
      name: 'PickingList',
      hidden: true,
      component: () => import('@/views/manage-storage-out/task-picking/PickingList/index.vue')
    },
    {
      path: 'manage-task-transfer',
      name: 'OutManageTaskTransfer',
      component: () =>
        import('@/views/manage-storage-out/manage-task-transfer/index.vue'),
      meta: { title: '交接任务', icon: '椭圆形备份 50' }
    }
  ]
}

// 当你的访问地址 是 /employees的时候 layout组件会显示 此时 你的二级路由的默认组件  也会显示
